package com.hspedu.mhl.service;

import com.hspedu.mhl.dao.EmployeeDAO;
import com.hspedu.mhl.domain.Employee;

/**
 * @author lianghao
 * @create 2022-07-11 19:14
 */
public class EmployeeService {
    private EmployeeDAO employeeDAO = new EmployeeDAO();
    public Employee getEmployeeByIdAndPwd(String empId, String pwd) {
        return employeeDAO.querySingle("select * from employee where empId = ? and pwd = md5(?)",
                empId,pwd);
    }

}
